package org.huzhp.data.handler;

import org.huzhp.data.core.DbType;
import org.huzhp.data.handler.pgsql.PostgresqlHandler;

/**
 * @Description: 数据库共工厂类
 * @Author: huzp
 * @CreateDate: 2020/4/22 10:49
 * @Version: 1.0
 */
public class DbFactory {

    private DbFactory(){}


    public static IHandler handler(String type){
        if (DbType.POSTGRESQL.getName().equalsIgnoreCase(type)){
            return new PostgresqlHandler();
        }
        return null;
    }

}
